package net.sppan.base.service.impl;

import net.sppan.base.dao.IMgAwardDao;
import net.sppan.base.dao.IMgUserAwardDao;
import net.sppan.base.dao.support.IBaseDao;
import net.sppan.base.entity.mgEntity.MgAward;
import net.sppan.base.entity.mgEntity.MgUserAward;
import net.sppan.base.service.IMgAwardService;
import net.sppan.base.service.IMgUserAwardService;
import net.sppan.base.service.support.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户账户表  服务实现类
 * </p>
 *
 * @author SPPan
 * @since 2016-12-28
 */
@Service
public class MgAwardServiceImpl extends BaseServiceImpl<MgAward, Integer> implements IMgAwardService {

	@Autowired
	private IMgAwardDao MgUserAwardDao;


	@Override
	public IBaseDao<MgAward, Integer> getBaseDao() {
		return this.MgUserAwardDao;
	}


	public void save(MgAward mgUserAward){
		  super.save(mgUserAward);
	}


	@Override
	public MgAward findByAwardEnglishName(String awardEnglishName) {
		return MgUserAwardDao.findByAwardEnglishName(awardEnglishName);
	}
}
